import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import {
  get,
  post
} from '@/utils/request';
import '@/assets/css/created.css';
// import '@/assets/css/main.css';
//直接用less吧 
import '@/assets/css/main.less';

import echarts from './components/echarts/echarts.vue';


Vue.config.productionTip = false;
Vue.prototype.$get = get;
Vue.prototype.$post = post;
Vue.prototype.Global = {};
Vue.prototype.eventBus = new Vue();
Vue.use(ElementUI, {
  size: 'small'
});

Vue.component('charts', echarts);

if (process.env.NODE_ENV === "development") {
  // window.setConfig("http://10.1.102.52:8021")
  window.setConfig("http://1.119.169.71:10012")
} else {
  window.setConfig()
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");